package com.tbit.uqbike.client.dao.core;

import com.tbit.uqbike.client.pojo.GiftCardUser;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * @Author: chen
 * @Description: 区域礼品卡用户余额
 * @Date: 创建于 14:27 2020/1/3
 */
public interface GiftCardUserDao {
    /**
     * 通过用户id获取
     */
    GiftCardUser getByUserId(Map<String, Object> map);

    /**
     * 新增
     */
    void insert(GiftCardUser giftCardUser);

    /**
     * 修改
     *
     * @param giftCardUser
     */
    void edit(GiftCardUser giftCardUser);

    /**
     * 通过用户id获取
     */
    List<GiftCardUser> getListByUserId(@Param("userId") Integer userId);
}
